package fun.asgc.graalvmlab.lab2;

/**
 * @author: wen.y
 * @date: 2024/5/9
 */
public class Person {
    private String name;

    static {
        System.out.println("Person 静态代码块");
    }

    {
        System.out.println("Person代码块");
    }

    public Person(String name) {
        System.out.println("Person 构造方法：" + name);
        this.name = name;
    }

    public void say(String msg) {
        System.out.println(String.format("%s 说：%s", this.name, msg));
    }
}
